home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / XINTRO18.ZIP / MXORG.ASC < prev    next >
Text File  |  1993-08-28  |  2KB  |  50 lines

  1. Figure 2: Memory organization in unchained 256-color modes (like
  2.           Mode X) (ASCII version)
  3.       by Robert Schmidt
  4.           (C) 1993 Ztiff Zox Softwear
  5.  
  6.  
  7. Imagine that the screen looks the same as in figure 1a.  A screen width
  8. of 320 pixels is still assumed.
  9.  
  10. In VGA memory, the screen will be represented as follows:
  11.  
  12.    Plane 0:
  13.  
  14.     address:  0         10                70       79 (NOT 319!)
  15.              ----------------------------------------
  16.              |0482604826048260    .....   0482604826|
  17.              |                                      |
  18.              |                                      |
  19.  
  20.    Plane 1:
  21.  
  22.     address:  0         10                70       79
  23.              ----------------------------------------
  24.              |1593715937159371    .....   1593715937|
  25.              |                                      |
  26.              |                                      |
  27.  
  28.    Plane 2:
  29.  
  30.     address:  0         10                70       79
  31.              ----------------------------------------
  32.              |2604826048260482    .....   2604826048|
  33.              |                                      |
  34.              |                                      |
  35.  
  36.    Plane 3:
  37.  
  38.     address:  0         10                70       79
  39.              ----------------------------------------
  40.              |3715937159371593    .....   3715937159|
  41.              |                                      |
  42.              |                                      |
  43.  
  44. Note that if pixel i is in plane p, pixel i+1 is in plane (p+1)%4.
  45. When the planes are unchained, we need to set the Write Plane Enable
  46. register to select which planes should receive the data when writing,
  47. or the Read Plane Select register when reading.  As is evident, one 
  48. address in the video segment provides access to no less than FOUR
  49. different pixels.
  50.